/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#include "../import/head.h"
#include "../data_struct/head.h"
#include "../helper_objs/head.h"
#include "../macro/head.h"
#include "../impl/head.h"
#include "../msg/head.h"
#include "helper_xos.h"
#include "xos_heart.h"
#include "xos_load.h"

namespace xos_http
{

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // 

    helper_xos::helper_xos()
    {
    }

    helper_xos::~helper_xos()
    {
    }

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // 

    int helper_xos::heart()
    {
        int ret = 0;
        xos_heart obj;
        obj.proc();
        return ret;
    }

    int helper_xos::load()
    {
        int ret = 0;
        {
            xos_load obj;
            obj.load();
        }
        mgr::container()->encrypt()->set_ssl_ctx_prop( helper_ssl::ctx() );
        return ret;
    }

} // xos_http
